import Vue from 'vue'
import Vuex from 'vuex'
import vuexPersist from "vuex-persist";
Vue.use(Vuex)
import state from "./state";
import actions from "./actions";
import mutations from "./mutations";
import getters from "./gtters";

export default new Vuex.Store({
  state,
  getters,
  mutations,
  actions,
  plugins: [
    new vuexPersist({
      storage: window.sessionStorage,
    }).plugin,
  ],
 
})
